import { fontStyle } from './common.config';

export const menu = [
  {
    type: 'portal-menu',
    name: '门户菜单',
    eventList: '初始化事件',
    styleList: [
      {
        type: 'group',
        name: '基础设置',
        children: [
          {
            name: '宽度',
            fieldName: 'item-width',
            fieldType: 'input',
            default: '150px'
          },
          {
            name: '高度',
            fieldName: 'item-height',
            fieldType: 'input',
            default: '50px'
          },
          {
            name: '分割线颜色',
            fieldName: 'item-split-color',
            fieldType: 'color-picker',
          },
          ...fontStyle()
        ]
      },
      {
        type: 'group',
        name: '子菜单设置',
        children: [
          {
            name: '背景颜色',
            fieldName: 'item-background-color',
            fieldType: 'color-picker',
          },
          {
            name: '字体颜色',
            fieldName: 'item-font-color',
            fieldType: 'color-picker',
          },
        ]
      },
      {
        type: 'group',
        name: '鼠标经过设置',
        children: [
          {
            name: '背景颜色',
            fieldName: 'item-active-background-color',
            fieldType: 'color-picker',
          },
          {
            name: '字体颜色',
            fieldName: 'item-active-font-color',
            fieldType: 'color-picker',
          }
        ]
      }
    ]
  },
]